/*
 * @Author: NtyAaron
 * @Date: 2021-04-07 15:19:52
 * @LastEditors: NtyAaron
 * @LastEditTime: 2021-06-23 14:22:57
 * @Description: 健康资讯页面api
 * @FilePath: \dwq\api\health\health.js
 */
import request from '../../utils/request'

// 国内疫情数据
export const getDomesticInfo = () => {
  return request({
    url: '/health/getDomesticInfo',
  })
}

// 城市列表
export const getCitys = () => {
  return request({
    url: '/health/getCity',
  })
}

// 当前城市id
export const getCityId = (data) => {
  return request({
    url: '/health/getCityId',
    data,
  })
}

// 省市区本土病例
export const getNationwideEpidemic = () => {
  return request({
    url: '/health/getNationwideEpidemic',
  })
}

// 检测机构列表
export const getOrganization = (data) => {
  return request({
    url: `/health/getOrganization`,
    data,
  })
}

// 出行防疫政策
export const getPolicy = (e) => {
  return request({
    url: `/health/getPolicy?from=${e.from}&to=${e.to}`,
  })
}
